package it.marco.test.dao;

import java.io.Serializable;
import java.util.List;

public interface BaseDAO<T, ID extends Serializable> {

	public abstract T find(ID id);

	public abstract void save(T entity);

	public abstract void saveOrUpdate(T entity);
	
	public abstract void update(T entity);

	public abstract void delete(T entity);

	public abstract List<T> findAll();

	public abstract List<T> findInRange(int firstResult, int maxResults);

}